import config from "@/config"
import http from "@/utils/request"

export default {
    member: {
		pageList: {
			url: config.API_URL+'/xunheng-member/member/getPageList',
			name: "获取会员信息分页列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		detail:{
			url: config.API_URL+'/xunheng-member/member/getDetail/',
			name: "会员信息详情",
			get: async function(id){
				return await http.get(this.url+id);
			}
		},
		save:{
			url: config.API_URL+'/xunheng-member/member/save',
			name: "会员信息新增",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
		edit:{
			url: config.API_URL+'/xunheng-member/member/edit',
			name: "会员信息修改",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
		delete:{
			url: config.API_URL+'/xunheng-member/member/delByIds/',
			name: "会员信息批量删除",
			delete: async function(ids){
				return await http.delete(this.url+ids);
			}
		}
	},
}